// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'normalize.css';
import 'lib-flexible';
import BetterScroll from 'better-scroll';
import fastClick from 'fastclick'
import Vue from 'vue';
//轮播
import Swiper from 'swiper';
import 'swiper/dist/css/swiper.min.css';
//标签页 ,导航栏 提交订单栏 Vant轻量级移动端组件
import {Tab,Tabs,NavBar,SubmitBar} from 'vant'
Vue.use(Tab).use(Tabs).use(NavBar).use(SubmitBar);
import App from './App'
import router from './router';
fastClick.attach(document.body);
import api from './http/api';
import {bus} from './eventBus';

Vue.config.productionTip = false;

//loading和tips组件使用的bus
Vue.prototype.$bus = bus;
Vue.prototype.$routes=router;
Vue.prototype.$BS=BetterScroll;
Vue.prototype.$api = api;
/* eslint-disable no-new */
new Vue({router}).$mount('#app');
